Tootsville::Infinity-Don

Function

Infinity-Don names a function, with lambda list (D USER RECIPIENT/S):

Don (or equip) an item

Lisp DON = JSON don

Usage

{ slot: "item-UUID",
  [ color: "color ID" ] }

JSON object has the item UUID number to be worn (clothes, pivitz, trunk).

See TOOTSVILLE WEAR-SLOT-INFO for descriptions of how wear slots are identified and described. Note that the appropriate wear slot can be determined from the item's template; see TOOTSVILLE ITEM-TEMPLATE-INFO. For a list of all wear slots, see TOOTSVILLE INFINITY-ENUMERATE-WEAR-SLOTS (new in 2.0).

Response with total avatar info from wardrobe. See TOOTSVILLE INFINITY-WARDROBE.

Color ID is no longer allowed; it will be rejected.

200 OK

The item has been donned or equipped.

400 Bad Request

The removed color attribute was submitted.

404 Not Found

The item UUID specified (by “slot”) was not recognized.

403 Forbidden

The item UUID specified was not owned by the player requesting to don it.

409 Conflict

The item requested cannot be equipped by the player's avatar. For example, a Toot character cannot equip an item which requires a HAND slot, since Toots have no fingers. Items which do not occupy a wear slot also cannot be equipped, e.g. a tree.

Changes from 1.2 to 2.0

Colors of items can no longer be changed when donning them. This was meant for pattern changing in 1.2, which must now be accomplished in-game via Doodle. The color parameter must be null or absent.

Patterns are no longer clothing items.

Changes from 1.0 to 1.1

Equipment held in the TRUNK is now explicitly supported as a distinct wear slot with specific meaning (ie, the user can activate that item).

File

Defined in file src/infinity/legacy-commands.lisp.